<?php
/*
* @Created by Phpstorm
* @User: Zhangxinlei
* @Date: 
* @Time:
*/
declare (strict_types = 1);
namespace app\common\model;


use think\facade\Request;
use think\facade\Session;
use think\Model;
use think\model\concern\SoftDelete;

class AdminDynamic extends Model
{
    //use SoftDelete;

    // 获取列表
    public static function getList()
    {
        $where = [];
        $limit = 6;
        if ($search = input('get.content')) {
            $where[] = ['content', 'like', "%" . $search . "%"];
        }
        $list = self::order('id','desc')->where($where)->paginate($limit);
        return $list;
    }
}